require "Common/define"

PlayerCtrl={};
local this = PlayerCtrl;
local transform;
local gameObject;
local lua;

function PlayerCtrl.New()
	return this;
end

function PlayerCtrl.Awake()
	panelMgr:CreatePanel('Player',this.OnCreate);
end

function PlayerCtrl.OnCreate( obj )
	gameObject=obj;
	transform=obj.transform;
	lua=transform:GetComponent('LuaBehaviour');
	lua:AddClick(PlayerPanel.btnObj,this.OnClick);
end

function PlayerCtrl.OnClick( go )
	print("add btn click");
	PlayerPanel:AddScore();
end